package com.yap.mvc;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 *
 * @author tadiwa
 */
public class Uploader {
     public static String getUsername() {
        String username;
         Subject subject = SecurityUtils.getSubject();
         username = subject.getPrincipal().toString();
         return username;
    }
}
